package com.gudong.user.runner;

import com.gudong.generator.util.AutoCodeGenerator;
import jakarta.annotation.Resource;
import org.springframework.boot.ApplicationArguments;
import org.springframework.boot.ApplicationRunner;
import org.springframework.context.annotation.Configuration;


@Configuration
public class MyApplicationRunner implements ApplicationRunner {
    @Resource
    private AutoCodeGenerator autoCodeGenerator;

    @Override
    public void run(ApplicationArguments args) throws Exception {
        autoCodeGenerator.generator();
    }
}
